public class TestArgs2 {
	static int sum = 0;
	public static void main(String [] args) {
    clSum(args.length - 1, args);

	}
        
        //递归函数
        public static void clSum(int t,String arr[]) {
 //          ...
        if (t == 0){ sum +=Integer.parseInt(arr[0]);
            System.out.print(sum);
        	return;
        }
        sum +=Integer.parseInt(arr[t]);
        clSum(t - 1, arr);
        }
}